<?php 
function validate()
{
session_start();
if(!isset($_SESSION['admin']))
{
	$url="login.php";
	$msg="你没有权限!";
	redirect($url,$msg);
//header('location:login.html')
	exit();
//die(print '你没有权限!');

} 
}
?>